package com.paic.tpa;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/menus")
@RestController
public class MenuController {

	@RequestMapping(value = "/{roles}", method = RequestMethod.GET)
    public String sayWorld(@PathVariable("roles") String roles) {
//        return "Hello2 " + name;
		return "service 2, menus for role: " + roles;
    }
}
